/*
 * @Author: zhangjun 
 * @Date: 2017-06-06 15:14:06 
 * @Last Modified by:   zhangjun 
 * @Last Modified time: 2017-06-06 15:14:06 
 */
import Vue from 'vue';
import Moment from 'moment';
import 'moment/locale/zh-cn';
Moment.locale('zh-cn');

Vue.filter('datetime', function (timestamp, format) {
  format = format || 'YYYY-MM-DD HH:mm';
  return Moment(timestamp).format(format);
});

